home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18313 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: news.cs.ucla.edu!twinsun!usenet
  2. From: Mike Klein <mklein@alumni.caltech.edu>
  3. Newsgroups: comp.lang.smalltalk,comp.lang.java,comp.lang.c++
  4. Subject: Re: Smalltalk slower than C++
  5. Date: Fri, 19 Apr 1996 15:20:25 -0700
  6. Organization: Codehenge
  7. Message-ID: <317811A9.7644@alumni.caltech.edu>
  8. References: <4kuavb$1dbc@watnews1.watson.ibm.com> <3174DD97.6BE1D26@bnr.ca> <3177048B.2CBD@alumni.caltech.edu> <gscottDq3Ipq.1rz@netcom.com>
  9. NNTP-Posting-Host: 192.54.239.42
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (X11; I; SunOS 5.5 sun4u)
  14.  
  15. > Mike Klein (mklein@alumni.caltech.edu) wrote:
  16. > : Here's a simple sample task:
  17. > :       Open a scrolling list interface on integers from one to ten million.
  18. > : Smalltalk results:
  19. > :       Coding time: 20 sec. (Yes I actually timed it).
  20. > :       Execution time: 64 millisecons (Sun Ultra-1, VW2.5)
  21. > :       Source code:
  22. > :       SequenceView openOn: (1 to: 10000000).
  23. > : I look forward to hearing *any* results from the Java/C++ world.
  24. > Ok, I'll bite :-)
  25. > Looks like you didn't save the SequenceView instance you created, so
  26. > after the user selects the number he wants (say by clicking on the
  27. > up scrollbar arrow an average of five million times) you won't be
  28. > able to do anything with the data since you can't get to it.
  29.  
  30. That wasn't in the specification.  I Admit I chose a simple example.
  31. The point is I actually coded something that actually ran.
  32. *Real* measurements, not vapor with stuff left over as an
  33. exercise.  If you wish to specify, code, and test a different benchmark,
  34. go for it.
  35.  
  36. > And I *hate* scrolling lists used for numeric input, so we'll just use
  37. > a nice simple labeled numeric input box and do it in Java:
  38. I wasn't intending it to be used as an example of a good UI.
  39.  
  40. > NumericInputBox myInput = new NumericInputBox("Enter Number:", 1,  10000000);
  41. > add(myInput);
  42. >
  43. > So there. Nyeah.
  44. Great, now we know that you can type.
  45. It wasn't what was specified.
  46. Did it run?
  47.  
  48. > Of course the implementation of NumericInputBox  is
  49. > left as an exercise, but it's pretty trivial to do.
  50. Trivial, maybe.  Done?  
  51.  
  52. >  Watch Java have
  53. > a more complete class library in six months than Smalltalk has got
  54. > after 20 years.
  55. Meet you back here in October.
  56.  
  57. > G.
  58. > P.S. Smalltalk is still perhaps my favorite language, but Java has a
  59. > lot of things going for it that ST does not.
  60. Like what?  I am really curious.  The only thing that Java seems
  61. to me to have going for it is an awful lot of platforms out there
  62. that actually run it.
  63.  
  64. -- Mike Klein
  65. mklein@alumni.caltech.edu
  66.